﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public static class DefaultOracleDataTypes
    {
        public const string Char = "CHAR";
        public const string Nvarchar2 = "NVARCHAR2";
        public const string Number = "NUMBER";
        public const string Varchar2 = "VARCHAR2";
        public const string Raw = "RAW";
        public const string Date = "DATE";

        public static bool IsChar(string extensionType)
        {
            return string.Equals(extensionType, Char, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsNvarchar2(string extensionType)
        {
            return string.Equals(extensionType, Nvarchar2, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsNumber(string extensionType)
        {
            return string.Equals(extensionType, Number, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsVarchar2(string extensionType)
        {
            return string.Equals(extensionType, Varchar2, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsRaw(string extensionType)
        {
            return string.Equals(extensionType, Raw, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsDate(string extensionType)
        {
            return string.Equals(extensionType, Date, StringComparison.OrdinalIgnoreCase);
        }
    }
}
